package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.Productstockallocation;
import cn.wolfcode.crm.mapper.ProductstockallocationMapper;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.service.IProductstockallocationService;
import cn.wolfcode.crm.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProductstockallocationService implements IProductstockallocationService{

    @Autowired
    private ProductstockallocationMapper proMapper;

    public PageResult queryForList(QueryObject qo) {
        List<Productstockallocation> list = proMapper.queryForList(qo);

        return new PageResult(list.size(),list);
    }
}
